package service

import (
	"netdisk/dao"
	"netdisk/models"
)

func FindById(id int64) *models.Role {
	role := new(models.Role)
	dao.DB.ID(id).Get(role)
	return role
}
